package com.npjscg.medicalpro.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.npjscg.medicalpro.controller.dto.HospitalDTO;
import com.npjscg.medicalpro.controller.dto.XYVO;
import com.npjscg.medicalpro.entity.Hospital;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author raote
 * @since 2022-07-04
 */
public interface IHospitalService extends IService<Hospital> {

    void addHospital(Hospital hospital);

   List<Hospital> findAll(String hospital);

    XYVO getChart(String hcode);

    void deleteHospital(String hcode);

    void editHospital(Hospital hospital);

    IPage hospitalPage(Page<Hospital> page, String hospital);

    HospitalDTO checkOne(String hcode);

    IPage hospitalPageByDep(Page<Hospital> page, Integer did);
}
